package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_CompanyInfo", catalog="Id")
public class TbCompanyInfo extends BaseEntity<TbCompanyInfo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Vid", nameJava="vid", typeDataBase="varchar")
	private String vid;
	@YsField(nameDataBase="Vname", nameJava="vname", typeDataBase="varchar")
	private String vname;
	@YsField(nameDataBase="RegAddress", nameJava="regAddress", typeDataBase="varchar")
	private String regAddress;
	@YsField(nameDataBase="BusinessScope", nameJava="businessScope", typeDataBase="varchar")
	private String businessScope;
	@YsField(nameDataBase="Tax", nameJava="tax", typeDataBase="varchar")
	private String tax;
	@YsField(nameDataBase="LegalPerson", nameJava="legalPerson", typeDataBase="varchar")
	private String legalPerson;
	@YsField(nameDataBase="IdNumber", nameJava="idNumber", typeDataBase="varchar")
	private String idNumber;
	@YsField(nameDataBase="Phone", nameJava="phone", typeDataBase="varchar")
	private String phone;
	@YsField(nameDataBase="Information", nameJava="information", typeDataBase="varchar")
	private String information;
	@YsField(nameDataBase="BusinessLicense", nameJava="businessLicense", typeDataBase="varchar")
	private String businessLicense;
	@YsField(nameDataBase="Attachment", nameJava="attachment", typeDataBase="varchar")
	private String attachment;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbCompanyInfo setId(Long id) {
		this.id = id;
		return this;
	}
	public String getVid() {
		return vid;
	}
	public TbCompanyInfo setVid(String vid) {
		this.vid = vid;
		return this;
	}
	public String getVname() {
		return vname;
	}
	public TbCompanyInfo setVname(String vname) {
		this.vname = vname;
		return this;
	}
	public String getRegAddress() {
		return regAddress;
	}
	public TbCompanyInfo setRegAddress(String regAddress) {
		this.regAddress = regAddress;
		return this;
	}
	public String getBusinessScope() {
		return businessScope;
	}
	public TbCompanyInfo setBusinessScope(String businessScope) {
		this.businessScope = businessScope;
		return this;
	}
	public String getTax() {
		return tax;
	}
	public TbCompanyInfo setTax(String tax) {
		this.tax = tax;
		return this;
	}
	public String getLegalPerson() {
		return legalPerson;
	}
	public TbCompanyInfo setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
		return this;
	}
	public String getIdNumber() {
		return idNumber;
	}
	public TbCompanyInfo setIdNumber(String idNumber) {
		this.idNumber = idNumber;
		return this;
	}
	public String getPhone() {
		return phone;
	}
	public TbCompanyInfo setPhone(String phone) {
		this.phone = phone;
		return this;
	}
	public String getInformation() {
		return information;
	}
	public TbCompanyInfo setInformation(String information) {
		this.information = information;
		return this;
	}
	public String getBusinessLicense() {
		return businessLicense;
	}
	public TbCompanyInfo setBusinessLicense(String businessLicense) {
		this.businessLicense = businessLicense;
		return this;
	}
	public String getAttachment() {
		return attachment;
	}
	public TbCompanyInfo setAttachment(String attachment) {
		this.attachment = attachment;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbCompanyInfo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbCompanyInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbCompanyInfo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbCompanyInfo tbCompanyInfo(
		String vid,
		String vname,
		String regAddress,
		String businessScope,
		String tax,
		String legalPerson,
		String idNumber,
		String phone,
		String information,
		String businessLicense,
		String attachment,
		Integer status
			) {
		TbCompanyInfo entity = new TbCompanyInfo();
		entity.setVid(vid);
		entity.setVname(vname);
		entity.setRegAddress(regAddress);
		entity.setBusinessScope(businessScope);
		entity.setTax(tax);
		entity.setLegalPerson(legalPerson);
		entity.setIdNumber(idNumber);
		entity.setPhone(phone);
		entity.setInformation(information);
		entity.setBusinessLicense(businessLicense);
		entity.setAttachment(attachment);
		entity.setStatus(status);
		return entity;
	}
}